﻿using System;
namespace myApp {
    public class App { 
        static void Main(string[] args)
        {
            string s = "";
            int n1 = 0;
            int n2 = 0;
            int result = 0;
            Console.Write("请输入第一个数:");
            s =Console.ReadLine();
            n1=Int32.Parse(s);
            Console.Write("请输入二个数:");
            s = Console.ReadLine();
            n2 = Int32.Parse(s);
            Console.Write("请输入运算符:");
            s = Console.ReadLine();
            if (s == "+") { result = n1 + n2; }
            else if (s == "-") { result = n1 - n2; }
            else if (s == "*") { result = n1 * n2; }
            else if (s == "/") { result = n1 / n2; }
            Console.Write(result);
        }

        }
    }
